﻿using System;

namespace chromium.Log
{
    public class LoggingEvent
    {
        private readonly LoggingLevel level;
        private readonly string msg;
        private readonly Exception exception;

        public LoggingEvent(LoggingLevel level, string msg)
            : this(level, msg, null)
        {

        }

        public LoggingEvent(LoggingLevel level, string msg, Exception exception)
        {
            this.level = level;
            this.msg = msg;
            this.exception = exception;
        }

        public LoggingLevel Level
        {
            get { return level; }
        }

        public string Msg
        {
            get { return msg; }
        }

        public Exception Exception
        {
            get { return exception; }
        }
    }
}
